use serde::{Deserialize, Serialize};

#[derive(Debug, Deserialize, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ConsoleNamespaces {
    pub custom_namespace_id: Option<String>,
    pub namespace_name: Option<String>,
    pub namespace_desc: Option<String>,
    pub namespace_id: Option<String>,
    pub namespace_show_name: Option<String>,
    pub namespace: Option<String>,
}
impl Default for ConsoleNamespaces {
    fn default() -> Self {
        Self {
            custom_namespace_id: Some(String::default()),
            namespace_name: Some(String::default()),
            namespace_desc: Some(String::default()),
            namespace_id: Some(String::default()),
            namespace_show_name: Some(String::default()),
            namespace: Some(String::default()),
        }
    }
}
#[derive(Debug, Deserialize, Serialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct ConsoleNamespacesRes {
    code: Option<i64>,
    message: Option<String>,
    data: Option<Vec<Data>>,
}

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
struct Data {
    namespace: Option<String>,
    namespace_show_name: Option<String>,
    quota: Option<i64>,
    config_count: Option<i64>,
    #[serde(rename = "type")]
    r#type: Option<i64>,
}
